<%@ page import="bean.MemberDTO" %>
<%@ page import="bean.MemberVO" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/member.css" />
<script type="text/javascript" src="../js/member.js"></script>
<title>회원 정보 수정(modify.jsp)</title>
</head>
<body>

<jsp:useBean id="vo" class="bean.MemberVO" scope="page"/>
<jsp:setProperty property="*" name="vo"/>
<%
	MemberDTO dto = new MemberDTO();
dto.setVo(vo);
MemberVO v = dto.selectOne();
%>

<h1>회원 수정</h1>
<div id="set">
	<form name= "frm_member_modify" method="post" action="index.jsp?inc=../Member/modify_result.jsp" enctype="multipart/form-data">
		<label class="lbl">아이디</label>
		<input type="text" name="mid" value="<%=v.getMid()%>"  /><br/>
		<label class="lbl">이름</label>
		<input type="text" name="irum"  value="<%=v.getIrum()%>" /><br/>
		<label class="lbl">닉네임</label>
		<input type="text" name="nickname" value="<%=v.getNickname()%>" /><br/>
		<label class="lbl">비밀번호</label>
		<input type="password" name="pwd" value="<%=v.getPwd()%>" /><br/>
		
		<label class="lbl">이미지 파일</label>
		<input type="file" name="images" /><p/>
		
		<label class="lbl">전화번호</label>
		<input type="text" name="phone" value="<%=v.getPhone()%>" /><p/>
		<label class="lbl">이메일</label>
		<input type="text" name="email" value="<%=v.getEmail()%>" /><p/>
		
		<label class="lbl">생일</label>
		<input type="date" name="birth" /><br/>
		<label class="lbl">성별</label>
		<input type = "radio" name ="gender" value="m">남자
	    <input type = "radio" name ="gender" value="f">여자</label><br>
		<label class="lbl">결혼여부</label>
		<input type = "radio" name ="marry" value="y">기혼
	    <input type = "radio" name ="marry" value="n">미혼</label><br>
		<label class="lbl">직업</label>
		<input type="text" name="job" value="<%=v.getJob()%>" /><br/>
		<label class="lbl">주소</label>
		<input type="text" name="address"  value="<%=v.getAddress()%>" /><br/>
		<label class="lbl">우편번호</label>
		<input type="text" name="zipcode"  value="<%=v.getZipcode()%>" /><br/>
		
		<label class="lbl">비밀번호 질문</label>
		<input type="text" name="question"  value="<%=v.getQuestion()%>" /><p/>
		<label class="lbl">비밀번호 답</label>
		<input type="text" name="answer"  value="<%=v.getAnswer()%>" /><br>
		
		<label class="lbl">개인정보 동의</label>
		<input type = "radio" name ="priv" value="y">동의
	    <input type = "radio" name ="priv" value="n">미 동의</label><br>
		
		<div id= "line_up">
		<input type="button" value="회원 저장" id="btnModify" />
		<input type="button" value="회원 리스트 보기" id="btnList" />
		</div>
	</form>
</div>

<form name="hiddenFrm" method="post">
	<input type="hidden" name= "nowPage" value="<%=vo.getNowPage()%>">
	<input type="hidden" name= "find" value="<%=vo.getFind()%>">
	<input type="hidden" name= "rno" value="<%=vo.getRno()%>">
</form>


<script type="text/javascript">modifyInit();</script>
</body>
</html>